<?php
Route::group(['prefix' => 'blog', 'namespace' => 'Blog', 'as' => 'blog.'], function () {

    //相册管理
    Route::resource('gallery', 'GalleryController', ['except' => 'show']);

    //上传照片
    Route::group(['prefix' => 'photo'], function(){
        Route::patch('change_attr', 'PhotoController@change_attr')->name('photo.change_attr'); //照片点赞

        //回收站
        Route::get('trash', 'PhotoController@trash')->name('photo.trash');  //回收站首页
        Route::post('/{photo}/restore', 'PhotoController@restore')->name('photo.restore'); //还原单条
        Route::delete('/{photo}/force_destroy', 'PhotoController@force_destroy')->name('photo.force_destroy'); //永久删除单条
    });
    Route::resource('photo', 'PhotoController', ['except' => 'index']);


});